# coding: utf-8
usa_combinations =      (0, 2, 14, 35, 23, 4, 16, 33, 21, 6, 18, 31, 19, 8, 12, 29, 25, 10, 27, "00", 1, 13, 36, 24, 3, 15, 34, 22, 5, 17, 32, 20, 7, 11, 30, 26, 9, 28)
cvet_kombinacii = ('g', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', "g", 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b', 'r', 'b')


def getNumber(x):
    return usa_combinations[x], cvet_kombinacii[x]

def getColor(nomer):
    return cvet_kombinacii[usa_combinations.index(nomer)]


class Stol():
    def __init__(self, tableName):
        self.name = tableName


    @staticmethod
    def getKombination():
        from random import Random
        Rnd = Random().randint

        k =  Rnd(0, 37)

        return getNumber(k)
        #return kombinacii, cvet_kombinacii
    def seetDown(self, users):
        self.usersTuple = users